﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClassesDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            Person firstPerson = new Person();
            firstPerson.firstName = "Maksim";
            firstPerson.lastName = "Evsukov";
            firstPerson.Introduce();
            Person secondPerson = new Person();
            secondPerson.firstName = "Вася";
            secondPerson.lastName = "Пупкин";
            Person thirdPerson = new Person();
            thirdPerson.firstName = "Аня";
            thirdPerson.lastName = "Пупкина";
            
            Person[] personArray = new Person[3]; 
            personArray[0] = firstPerson;
            personArray[1] = secondPerson;
            personArray[2] = thirdPerson;

            foreach (var person in personArray)
            {
                person.Introduce();
            }

        }
    }

    


}
